/**
 * lilang
 * TestClass.java
 * 2013-6-16上午10:49:49
 */
package com.cq.oa.common;

import oa.base.util.BeanUtils;

import com.cq.oa.domain.sm.User;


/**
 * @author lilang
 *
 */
public class TestClass {
	
	public static void main(String[] args) {
		User user = new User();
		user.setAddress("11111");
		user.setCname("lilang");
		user.setStatus(1);
		user.setSid(1L);
		User user2 = new User();
		user2.setSid(1L);
		user2.setCname("李浪");
		//BeanUtils.copyProperties(user2,user);
		BeanUtils.copyPropertiesNoNull(user2,user);
		System.out.println(user.getCname());
	}

}
